<meta charset="utf-8">
<link href="__resource_path__/ui-framework/easyui-1.5.2/themes/metro/easyui-c5a176a3d4.css" rel="stylesheet" />
<link href="__resource_path__/ui-framework/easyui-1.5.2/themes/icon-77a4ded0c8.css" rel="stylesheet" />

<link href="__resource_path__/ui-framework/bootstrap/3.0.3/css/bootstrap-a067b6d831.min.css" rel="stylesheet" />
<link href="__resource_path__/ui-framework/bootstrap-daterangepicker/css/daterangepicker-886dba62c4.css" rel="stylesheet" />
<style>
  table{width:275px;height:200px;margin:0 auto;font-size:14px;}
  /*td{width:200px;}*/
  .title{text-align:right;width:80px;}
  input{text-align:left;width:140px}
  .submit{width:50px;text-align:center;background-color:#fff;border:1px solid #000;border-radius: 5px;}
  .daoru{color:#06a8f9;font-size:12px;margin-left:10px;}
</style>

<div class="lay-box">
    <div class="lay-content">
        <table>
        <tr>
          <td class="title">打手</td>
          <td>
            <input type="text" style="width:140px"  value="{:getName($data.uid)}" disabled="disabled">
          </td>
        </tr>
        <tr>
          <td class="title">账户</td>
          <td>
            <input type="text" name="account" value="{$data.account}">
          </td>
        </tr>
        <tr>
          <td class="title">需求</td>
          <td>
            <input type="text" name="demand" value="{$data.demand}">
          </td>
        </tr>
        <tr>
          <td class="title">装备信息</td>
          <td>
            <input type="text" name="information" value="{$data.information}">
          </td>
        </tr>
        <tr>
          <td></td>
          <td>
            <input  class="submit" type="submit" value="修改" onclick="edit()">
          </td>
        </tr>
        <input type="hidden" name="id" value="{$data.id}">
       </table>
    </div>
</div>
<script src="__resource_path__/libs/jquery/jquery-1-4ed679c998.11.3.min.js"></script>
<script src="__resource_path__/ui-framework/bootstrap/3.0.3/js/bootstrap-7b3098bda9.min.js"></script>
<script src="__resource_path__/ui-framework/bootstrap-daterangepicker/js/moment-zh_cn-3d8809ccd6.js"></script>
<script src="__resource_path__/ui-framework/bootstrap-daterangepicker/js/daterangepicker-bca1a72d19.js"></script>
<script src="__static_path__/js/layer/layer.js"></script>
<script type="text/javascript">



function edit(){
      var account = $('input[name=account]').val();
      var demand = $('input[name=demand]').val();
      var information = $('input[name=information]').val();
      var id = $('input[name=id]').val();
      $.post('/index/group/editinfo',{id:id,account:account,demand:demand,information:information},function(res){
            layer.msg(res.msg);
            if(res.code == 1){
                window.setTimeout(function(){
                    window.parent.location.reload();
                },1000);
            }
        });
}
</script>
